<?php echo $this->render('/public/header');?>
<script src="https://cdn.bootcss.com/element-ui/1.4.2/index.js"></script>
<link href="https://cdn.bootcss.com/element-ui/1.4.2/theme-default/index.css" rel="stylesheet">
<style>
    input[type=file] {
        display: none
    }
</style>
    <div id="main" class="col-lg-12 col-md-12 col-sm-12">
        <div class='col-lg-1'>
            <el-upload action='/upload/upload_purchase_pay' class="upload_demo" :on-success="handlesuccess">
                <el-button size="small" type="primary">点击上传</el-button>
            </el-upload>
        </div>
    </div>
    <script>
        new Vue({
            el:"#main",
            methods:{
                handlesuccess:function(res){
                    if (res.code == 1) {
                    this.$message({
                        message: res.msg,
                        type: 'success'
                    })
                } else {
                    this.$message({
                        message: res.msg,
                        type: 'error'
                    })
                }
                }
            }

        })
    </script>
<?php echo $this->render('/public/footer');?>
